package com.googlecode.jmicroerp.model;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author alex
 */
@Entity
@Table(name = "produse")
@NamedQueries({
    @NamedQuery(
            name = "Produs.listDenumiri",
            query = "select id, denumire "
            + "from Produs "
            + "where denumire = ? ")
})
@Inheritance(strategy = InheritanceType.JOINED)
public class Produs extends AbstractEntitate implements Active {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String denumire;
    private String caleImagine;
    private BigDecimal pret;
    private Boolean activ;
    private BigDecimal ordine;

    @Column(name = "DENUMIRE", length = 255)
    public String getDenumire() {
        return denumire;
    }

    public void setDenumire(String denumire) {
        this.denumire = denumire;
    }

    @Column(name = "CALE_IMAGINE", length = 255)
    public String getCaleImagine() {
        return caleImagine;
    }

    public void setCaleImagine(String caleImagine) {
        this.caleImagine = caleImagine;
    }

    @Column(name = "PRET")
    public BigDecimal getPret() {
        return pret;
    }

    public void setPret(BigDecimal pret) {
        this.pret = pret;
    }

    @Column(name = "ACTIV")
    public Boolean isActiv() {
        return activ;
    }

    public void setActiv(Boolean activ) {
        this.activ = activ;
    }   
    
    @Column(name = "ORDINE")
    public BigDecimal getOrdine() {
        return ordine;
    }

    public void setOrdine(BigDecimal ordine) {
        this.ordine = ordine;
    }
    
}
